<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script
	src="http://tjs.sjs.sinajs.cn/t35/apps/opent/js/frames/client.js"
	language="JavaScript"></script>
<style type="text/css">
.ask {
	background-repeat: repeat;
	width: 300px;
	height: 30px;
	font-size: 16px;
	border-style: groove;
	background: transparent;
}

.t {
	background-repeat: no-repeat;
	background-attachment: fixed;
}
</style>
<script type="text/javascript"> 
function authLoad(){
 	App.AuthDialog.show({
	client_id : '2693979711',    //必选，appkey
	redirect_uri : 'http://apps.weibo.com/wennimeiv',     //必选，授权后的回调地址，例如：http://apps.weibo.com/giftabc
	height: 120,    //可选，默认距顶端120px
        scope: ''friendships_groups_read, friendships_groups_write"//可选，授权页scope参数
	});
}
</script>
<title>Insert title here</title>
</head>
<body>
	<c:if test="${flag }">
		<script type="text/javascript">authLoad(); </script>
	</c:if>
	<table width="760" border="0" class="t"
		background="http://fmn.rrfmn.com/fmn059/page_skin/20130227/2310/large_luBH_0ff1000002901261.jpg">
		<tr>
			<td width="50" height="50" rowspan="3"><img
				src="${user.profileImageUrl}" /></td>
			<td width="157" height="20">昵称：${user.screenName }</td>
			<td width="242" rowspan="3"><span style="color: white;">
					天气查询、历史上的今天、商户点评、翻译、手机号码归属地、股票行情、快递
					、航班查询、邮编区号、笑话、城市旅游、星座配对、百科知识、图片搜索、商品参数、软件下载、新闻、星座运势。还有更多精彩功能等待您去发掘！让问你妹成为您生活必备之佳品！直接发送“h”查看帮助。
			</span></td>
			<td width="150" rowspan="3" align="right"><span
				style="padding-right: 30px"> <img
					src="http://fmn.rrimg.com/fmn061/page_skin/20130227/2335/large_KSAd_672a00000c751261.jpg"
					height="120" width="120" />
			</span></td>
		</tr>
		<tr>
			<td height="41">位置：${user.location }</td>
		</tr>
		<tr>
			<td height="28">个人描述：${user.description }</td>
		</tr>
		<tr>
			<td height="46" colspan="3" align="center">
				<form action="/wennimei/weibo?signed_request=${signed_request }"
					method="post">
					<input type="text" name="content" class="ask" /> <input
						name="Submit" type="submit" value="问你妹" />
				</form>
			</td>
		</tr>
		<tr>
			<td height="250" colspan="3" align="left"
				style="background-color: white;"><span>${result }</span></td>
		</tr>
	</table>
</body>
</html>
